package com.four.bmm.util;

public class PageUtil {
    /**
     * 每页显示的行数
     */
    public static final int PAGE_SIZE=3;
    /**
     * 总页数
     * @param
     * @return
     */
    public static int getToatlPages(int totalDatas){
        return totalDatas%PAGE_SIZE==0?totalDatas/PAGE_SIZE:totalDatas/PAGE_SIZE+1;
    }
}
